package com.eshop.eshop2021_v1.mapper.before;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eshop.eshop2021_v1.pojo.User;
import com.eshop.eshop2021_v1.pojo.UserTest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 若若叶
 * @date: 2021/10/6 8:56 FileName: UserMapper Description:
 */
// 前台用户
@Mapper
public interface UserMapper extends BaseMapper<User> {
  // 更新密码
  int doUpdatePwd(@Param("email") String email, @Param("password") String password);

  // 修改信息
  int updateByEmail(User user);

  // 测试：根据id查用户信息
  UserTest findUserByUserId(Integer uid);
}
